package com.ruoyi.shop.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户收藏对象 shop_user_favorite
 * 
 * @author Alan Zhang
 * @date 2021-09-14
 */
public class ShopUserFavorite extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收藏ID */
    private Long id;

    /** 收藏用户 */
    @Excel(name = "收藏用户")
    private Long userId;

    /** 收藏数据的类型 */
    @Excel(name = "类型 1商品  2文章")
    private Integer type;

    /** 收藏数据的id */
    @Excel(name = "收藏数据的id")
    private Long typeId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 缩略图 */
    @Excel(name = "缩略图")
    private String thumbnail;

    /** 详情页 */
    @Excel(name = "详情页")
    private String link;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }

    public void setTypeId(Long typeId)
    {
        this.typeId = typeId;
    }

    public Long getTypeId()
    {
        return typeId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setThumbnail(String thumbnail) 
    {
        this.thumbnail = thumbnail;
    }

    public String getThumbnail() 
    {
        return thumbnail;
    }
    public void setLink(String link) 
    {
        this.link = link;
    }

    public String getLink() 
    {
        return link;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("type", getType())
            .append("typeId", getTypeId())
            .append("title", getTitle())
            .append("thumbnail", getThumbnail())
            .append("link", getLink())
            .append("createTime", getCreateTime())
            .toString();
    }
}
